import { getUsers } from "@/api/dataService"


export const useUser = defineStore('users', () => {
  const { state, isReady, execute } = useAsyncState(getUsers, [])
  return {
    state,
    isReady,
    refresh: execute,
  }
})